package projetstackoverflow

import org.springframework.web.servlet.LocaleResolver

class SessionInitFilters {

    def filters = {
        all(controller:'*', action:'*') {
            before = {
				if (!session.'org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE') 
				{
					session['org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE'] = new Locale('en','US')
				}
				
				
            }
            after = { Map model ->

            }
            afterView = { Exception e ->

            }
        }
    }
}
